﻿using UnityEngine;

public abstract class TimeroutBaseVO
{
    public uint objID;
    private float curTime;
    public float delay;
  
    public void Update()
    {
        curTime += Time.deltaTime;
        if (curTime >= delay)
        {
            CallFun();
        }
    }

    public abstract void Destroy();

    protected abstract void CallFun();
}